const mongoose = require('mongoose');

var bandASchema = mongoose.Schema({
  perfix : String,
  brandList: [
    String,
    String,
    String,
    String
  ],
  shaixuan: [
    String,
    String,
    String,
    String
  ],
  locationImg: String,
  renderList: [
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    },
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    },
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    },
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    },
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    },
    {
      title: String,
      area: Number,
      orientation: String,
      location: String,
      tips: [
        String,
        String,
        String,
        String
      ],
      price: Number,
      saleimg: String
    }
  ],
  loveimg: String
});

var bandApartmentModel = mongoose.model('bandapartments', bandASchema);

module.exports = bandApartmentModel;